package com.jctrip.hotel.management.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@ApiModel(value = "销售报表信息-返回值")
@Data
@Builder
public class MarketResult {
    @ApiModelProperty(value = "销售报表列表")
    private List<MarkerInfo> records;

    @ApiModelProperty(value = "供应总数")
    private Long total;

    @ApiModelProperty(value = "当前页码")
    private Long current;

    @ApiModelProperty(value = "当前页面大小")
    private Long size;

    @ApiModelProperty(value = "共几页")
    private Long pages;

    @ApiModel(value = "销售报表对象")
    @Data
    @Builder
    public static class MarkerInfo{
        @ApiModelProperty(value = "渠道名")
        private String sellerName;

        @ApiModelProperty(value = "订单数")
        private Long orderCount;

        @ApiModelProperty(value = "间夜数")
        private Long roomNightQuantity;

        @ApiModelProperty(value = "收入金额")
        private BigDecimal amount;

        @ApiModelProperty(value = "采购成本")
        private BigDecimal purchaseCost;

        @ApiModelProperty(value = "预估利润")
        private BigDecimal estimatedProfit;

        @ApiModelProperty(value = "预估利润率")
        private BigDecimal estimatedRateOfProfit;
    }
}
